package controllers;

import models.edu_users;
import play.mvc.Controller;
import play.mvc.Result;
import views.html.*;

public class AdminOperations extends Controller {

public static Result superAdmin(){
    	if(edu_users.getCurrentUser().user_type==2){
    		return ok(superadminpanel.render());
    	}else
    	{
    		return redirect(routes.Application.index());
    	}
    }
   
	public static Result Admin(){
		
		if(edu_users.getCurrentUser().user_type>0){
			return ok(adminpanel.render());
		}else
		{
			return redirect(routes.Application.index());
		}
		
	}

}
